<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>YIYI</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <jquery/><jsconst/>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/{$info.theme}.css">      
</head>
<body>
<!-- ****************************导航信息************************ -->
<if value="isset($hd.session.uid)">
	<if value="$hd.session.uid eq $hd.get.uid">
		<ul class="btn-panel">
			<li title="返回首页">
				<a class="icon btn-home" target="_top" href="__CONTROL__/home">返回首页</a>
			</li>
			<li title="自定义模板">
				<a class="icon btn-customize" target="_top" href="__CONTROL__/theme">自定义模板</a>
			</li>
		</ul>  
	<elseif value='in_array($uid,$user.following)'/>

		<ul class="btn-panel">
			<li title="返回首页">
			<a class="icon btn-home" target="_top" href="__CONTROL__/home">返回首页</a>
			</li>
			<li title="取消关注">
			<a class="icon btn-unfollow" href="__CONTROL__/unfollow/fuid/{$hd.get.uid}">取消关注</a>
			</li>
		</ul>
	<else/>
		<ul class="btn-panel">
	     	<li title="返回首页">
				<a class="icon btn-home" target="_top" href="__CONTROL__/home">返回首页</a>
			</li>
			<li title="关注">
				<a class="icon btn-follow" href="__CONTROL__/follow/fuid/{$hd.get.uid}">关注</a>
			</li>
		</ul> 
	</if>       
<else/>
	<ul class="btn-panel">
		<li>
			<a class="icon btn-register" title="立即加入点点" target="_blank" href="__CONTROL__/register">立即加入点点</a>
		</li>
		<li>
			<a class="icon btn-login" target="_top" href="__CONTROL__/login" title="登录">登录</a>
		</li>
	</ul> 
</if>
	<div id="wrapper" class="blue">
		<!-- ****************************头部信息************************ -->
		<div id="header">
			<div id="together">
				<a href="" class="title">
					<div class="avatar"><img src="__ROOT__/{$info.photo}" ></div>
					<h2>{$info.nickname}</h2>
				</a>
				<ul class="links">
					<li>
						<a href="__CONTROL__/blog/uid/{$info.uid}">博客</a>
					</li>
					<li>
						<a href="__CONTROL__/user/uid/{$info.uid}" target="_blank">资料</a>
					</li>
					<li>
						<a href="__CONTROL__/my_follow/uid/{$info.uid}" target="_blank">关注</a>
					</li>
					<li>
						<a href="http://yooyle.diandian.com/archive">存档</a>
					</li>
				</ul>
				<div class="more">
					<div class="spaceit">
						<div class="description">
							<a href="">{$info.desc}</a>
						</div>
						<form class="search" method="post" action="/">
							<input type="text" placeholder="Search..." name="q">
							<input type="submit" value="Search">
						</form>
					</div>
				</div>
			</div>
			<div class="sidecred">
				Copyright ©
				<a href="__CONTROL__/user/uid/{$info.uid}">{$info.username}</a>
				<br>
				Powered by
				<a href="__CONTROL__/about">依依</a>
			</div>
		</div>
		<!-- ****************************主体内容************************ -->
		<div id="main">
			<!-- 文章部分 -->
			<if value="empty($rows)">
				<div class="outer">
					<if value="$info.uid eq $hd.session.uid">
						<div id="page" class="text">
							<p>你还没有写过日志！<a href="__CONTROL__/write">写日志</a></p>
						</div>
					<else/>
						<div id="page" class="text">
							<p>这家伙很懒，什么都没有留下！</p>
						</div>
					</if>
				</div>
			<else/>
				<list from="$rows" name="$v">	
					<div class="outer">
						<div class="post text">
							<a href="__CONTROL__/my_zone/uid/{$v.uid}/id/{$v.id}">
								<h2>{$v.title}</h2>
							</a>
							<p>{$v.body}</p>	
						</div>
					</div>
				</list>
				<div class="outer"><!-- 分页部分 -->
					<div id="page" class="text">
							{$page}
					</div>
				</div>
			</if>
		</div>
	</div>
</body>
</html>